package com.loan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.loan.entity.Mortgage;
import com.loan.mappers.MortgageMapper;
import com.loan.service.MortgageService;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MortgageServiceImpl extends ServiceImpl<MortgageMapper, Mortgage> implements MortgageService {
    @Autowired
    private MortgageMapper mortgageMapper;

    @Override
    public List<Mortgage> condition(Mortgage mortgage) {
        return mortgageMapper.condition(mortgage);
    }
}
